class Book {
    String title
    String description
    String category

    static belongsTo = [corpus:Corpus]

    Date dateCreated
    Date lastUpdated

    static constraints = {
        title(nullable:false, blank:false)
        description(nullable:true, blank:true)
        category(nullable:true, blank:true)
    }

    String toString() {
        title ?: "n.a."
    }
}
